home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
501-525
/
disk_509
/
multi_player
/
sources
/
window.h
< prev
Wrap
C/C++ Source or Header
|
1992-05-06
|
7KB
|
228 lines
SHORT BorderVectors1[] = {
0,0,
42,0,
42,15,
0,15,
0,0
};
struct Border Border1 = {
-1,-1, /* XY origin relative to container TopLeft */
3,0,JAM1, /* front pen, back pen and drawmode */
5, /* number of XY vectors */
BorderVectors1, /* pointer to XY vectors */
NULL /* next border in list */
};
struct IntuiText IText1 = {
3,0,JAM2, /* front and back text pens, drawmode and fill byte */
15,3, /* XY origin relative to container TopLeft */
NULL, /* font pointer or NULL for default */
"?", /* pointer to text */
NULL /* next IntuiText structure */
};
struct Gadget Gadget5 = {
NULL, /* next gadget */
274,13, /* origin XY of hit box relative to window TopLeft */
41,14, /* hit box width and height */
NULL, /* gadget flags */
RELVERIFY, /* activation flags */
BOOLGADGET, /* gadget type flags */
(APTR)&Border1, /* gadget border or image to be rendered */
NULL, /* alternate imagery for selection */
&IText1, /* first IntuiText structure */
NULL, /* gadget mutual-exclude long word */
NULL, /* SpecialInfo structure */
NULL, /* user-definable data */
NULL /* pointer to user-definable data */
};
SHORT BorderVectors2[] = {
0,0,
34,0,
34,15,
0,15,
0,0
};
struct Border Border2 = {
-1,-1, /* XY origin relative to container TopLeft */
3,0,JAM1, /* front pen, back pen and drawmode */
5, /* number of XY vectors */
BorderVectors2, /* pointer to XY vectors */
NULL /* next border in list */
};
struct IntuiText IText2 = {
3,0,JAM2, /* front and back text pens, drawmode and fill byte */
10,4, /* XY origin relative to container TopLeft */
NULL, /* font pointer or NULL for default */
"-", /* pointer to text */
NULL /* next IntuiText structure */
};
struct Gadget Gadget4 = {
&Gadget5, /* next gadget */
5,13, /* origin XY of hit box relative to window TopLeft */
33,14, /* hit box width and height */
NULL, /* gadget flags */
RELVERIFY, /* activation flags */
BOOLGADGET, /* gadget type flags */
(APTR)&Border2, /* gadget border or image to be rendered */
NULL, /* alternate imagery for selection */
&IText2, /* first IntuiText structure */
NULL, /* gadget mutual-exclude long word */
NULL, /* SpecialInfo structure */
NULL, /* user-definable data */
NULL /* pointer to user-definable data */
};
SHORT BorderVectors3[] = {
0,0,
67,0,
67,15,
0,15,
0,0
};
struct Border Border3 = {
-1,-1, /* XY origin relative to container TopLeft */
3,0,JAM1, /* front pen, back pen and drawmode */
5, /* number of XY vectors */
BorderVectors3, /* pointer to XY vectors */
NULL /* next border in list */
};
struct IntuiText IText3 = {
3,0,JAM2, /* front and back text pens, drawmode and fill byte */
23,3, /* XY origin relative to container TopLeft */
NULL, /* font pointer or NULL for default */
">>", /* pointer to text */
NULL /* next IntuiText structure */
};
struct Gadget Gadget3 = {
&Gadget4, /* next gadget */
202,13, /* origin XY of hit box relative to window TopLeft */
66,14, /* hit box width and height */
NULL, /* gadget flags */
RELVERIFY+GADGIMMEDIATE, /* activation flags */
BOOLGADGET, /* gadget type flags */
(APTR)&Border3, /* gadget border or image to be rendered */
NULL, /* alternate imagery for selection */
&IText3, /* first IntuiText structure */
NULL, /* gadget mutual-exclude long word */
NULL, /* SpecialInfo structure */
NULL, /* user-definable data */
NULL /* pointer to user-definable data */
};
SHORT BorderVectors4[] = {
0,0,
71,0,
71,15,
0,15,
0,0
};
struct Border Border4 = {
-1,-1, /* XY origin relative to container TopLeft */
3,0,JAM1, /* front pen, back pen and drawmode */
5, /* number of XY vectors */
BorderVectors4, /* pointer to XY vectors */
NULL /* next border in list */
};
struct IntuiText IText4 = {
3,0,JAM2, /* front and back text pens, drawmode and fill byte */
22,3, /* XY origin relative to container TopLeft */
NULL, /* font pointer or NULL for default */
"NEW", /* pointer to text */
NULL /* next IntuiText structure */
};
struct Gadget Gadget2 = {
&Gadget3, /* next gadget */
127,13, /* origin XY of hit box relative to window TopLeft */
70,14, /* hit box width and height */
NULL, /* gadget flags */
RELVERIFY, /* activation flags */
BOOLGADGET, /* gadget type flags */
(APTR)&Border4, /* gadget border or image to be rendered */
NULL, /* alternate imagery for selection */
&IText4, /* first IntuiText structure */
NULL, /* gadget mutual-exclude long word */
NULL, /* SpecialInfo structure */
NULL, /* user-definable data */
NULL /* pointer to user-definable data */
};
SHORT BorderVectors5[] = {
0,0,
78,0,
78,15,
0,15,
0,0
};
struct Border Border5 = {
-1,-1, /* XY origin relative to container TopLeft */
3,0,JAM1, /* front pen, back pen and drawmode */
5, /* number of XY vectors */
BorderVectors5, /* pointer to XY vectors */
NULL /* next border in list */
};
struct IntuiText IText5 = {
3,0,JAM2, /* front and back text pens, drawmode and fill byte */
24,3, /* XY origin relative to container TopLeft */
NULL, /* font pointer or NULL for default */
"STOP", /* pointer to text */
NULL /* next IntuiText structure */
};
struct Gadget Gadget1 = {
&Gadget2, /* next gadget */
43,13, /* origin XY of hit box relative to window TopLeft */
77,14, /* hit box width and height */
NULL, /* gadget flags */
RELVERIFY, /* activation flags */
BOOLGADGET, /* gadget type flags */
(APTR)&Border5, /* gadget border or image to be rendered */
NULL, /* alternate imagery for selection */
&IText5, /* first IntuiText structure */
NULL, /* gadget mutual-exclude long word */
NULL, /* SpecialInfo structure */
NULL, /* user-definable data */
NULL /* pointer to user-definable data */
};
#define GadgetList1 Gadget1
struct NewWindow NewWindowStructure1 = {
100,107, /* window XY origin relative to TopLeft of screen */
320,31, /* window width and height */
0,1, /* detail and block pens */
GADGETDOWN+GADGETUP+REQSET+CLOSEWINDOW+REQVERIFY+REQCLEAR+VANILLAKEY, /* IDCMP flags */
WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, /* other window flags */
&Gadget1, /* first gadget in gadget list */
NULL, /* custom CHECKMARK imagery */
"Multi_Player", /* window title */
NULL, /* custom screen pointer */
NULL, /* custom bitmap */
5,5, /* minimum width and height */
-1,-1, /* maximum width and height */
WBENCHSCREEN /* destination screen type */
};
void HandleEvent(object)
APTR object;
{
if (object == (APTR)&Gadget1) { quit(object); return; }
if (object == (APTR)&Gadget2) { new(object); return; }
if (object == (APTR)&Gadget3) { fast(object); return; }
if (object == (APTR)&Gadget4) { ico(object); return; }
if (object == (APTR)&Gadget5) { info(object); return; }
}
#define HANDLEEVENT HandleEvent
/* end of PowerWindows source generation */